﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using SGRapidForm.Common;
using SGDemo.OA.Entity;

namespace SGDemo.OA.Service.Interface
{
    /// <summary>
    /// File: IPADCategoryService.cs 服务接口类
    /// </summary>
    /// <remarks>
    /// <para>Author: "Ralph"</para>
    /// <para>Date: "2012-11-10"</para>
    /// <para>Version: "V1.0"</para>
    /// <para>Copyright: "神冠软件"</para>
    /// </remarks>
    [ServiceContract(Namespace = "http://www.solutiongear.net/SGRapidForm/")]
    public interface IPADCategoryService
    {
        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool PADCategory_Add(PADCategoryENT ent);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool PADCategory_Delete(string keyid);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        bool PADCategory_Update(PADCategoryENT ent);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        PADCategoryENT PADCategory_GetByKeyid(string keyid);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        List<PADCategoryENT> PADCategory_PagingGet(Int32 startRecord, Int32 maxRecords, String sortColumns, String filterConditions);

        [OperationContract]
        [FaultContract(typeof(ServiceExceptionDetail))]
        int PADCategory_PagingGetCount(String filterConditions);
    }
}